package com.suyx.job.service.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.suyx.job.dao.CyRepository;
import com.suyx.job.entity.Cy;
import com.suyx.job.service.ICyService;
import com.suyx.job.service.base.impl.MyServiceImpl;

/**
 * @Auther: lanyanhua
 * @Date: 2018/10/18 0018 11:50
 * @Description:
 */
@Service
public class CyServiceImpl extends MyServiceImpl<Cy,Integer> implements ICyService {
	
	private CyRepository cyRepository;

    @Autowired
    public CyServiceImpl(CyRepository repository) {
        super(repository);
        this.cyRepository = repository;
    }

	@Override
	public List<Cy> findByContent(String content) {
		return cyRepository.findByContentLike(content);
	}

	
}
